﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class menu
    {
        public void Menu1()
        {
            int A =0;
            menu me1 = new menu();
            do
            {
                Console.Clear();
                Console.WriteLine("2.hinh tru tron");
                Console.WriteLine("1.hinh lap phuong");
                Console.WriteLine("0.thoat");
                Console.Write("nhap lua chon: ");
                int B = Convert.ToInt16(Console.ReadLine());
                
                switch (B)
                {
                    case 1:
                        me1.Menu2LP();
                    break;
                    case 2:
                        me1.Menu2TT();
                    break;
                    case 0:
                    Environment.Exit(0);
                    break;

                }
            }while(A==0);

        }
        public void Menu2TT()
        {
            Console.Clear();
            int A = 0;
            do
            {
                Console.WriteLine("3.dien tich toan phan");
                Console.WriteLine("2.the tich");
                Console.WriteLine("1.dien tich day");
                Console.WriteLine("0.quay lai");
                Console.Write("nhap lua chon: ");
                int B = Convert.ToInt16(Console.ReadLine());
                switch (B)
                {
                    case 1:
                    break;
                    case 2:
                    break;
                    case 3:
                    break;
                    case 0:
                    A++;
                    break;
                }
            } while (A == 0);
        }
        public void Menu2LP()
        {
            Console.Clear();
            int A = 0;
            do
            {
                Console.WriteLine("3.dien tich toan phan");
                Console.WriteLine("2.the tich");
                Console.WriteLine("1.dien tich day");
                Console.WriteLine("0.quay lai");
                Console.Write("nhap lua chon: ");
                int B = Convert.ToInt16(Console.ReadLine());
                switch (B)
                {
                    case 1:
                        break;
                    case 2:
                        break;
                    case 3:
                        break;
                    case 0:
                        A++;
                        break;
                }
            } while (A == 0);
        }
    }
}
